/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-09-03 22:17:46
 * @LastEditors: turingchang
 * @LastEditTime: 2020-09-08 16:33:06
 */

module.exports = app => {
    const {router,controller} = app;
    const homeRouter = router.namespace('/api/home');
    homeRouter.post('/login', controller.home.home.login);
    homeRouter.post('/logout', controller.home.home.logout);
    homeRouter.get('/menu', controller.home.home.menu);
    // adminRouter.post('/admin', controller.admin.admin.create);
    // adminRouter.get('/admin/:id', controller.admin.admin.detail);
    // adminRouter.post('/admin/:id', controller.admin.admin.update);
    // adminRouter.delete('/admin/:id', controller.admin.admin.delete);
    // adminRouter.get('/admin/list', controller.admin.admin.list);
    
    // router.redirect('/news/list','/news');//重定向使用router而不是adminRouter
} 